<?php
/*
 * This is sort of birth page.
 */
?>
<p>It is thought that the pregnancy period comes to term starting from the date of the first day of last menstrual period and the child being, on average, between the 38th and the 42nd week.</p>
<p>The mother usually undergoes further checks and controls in order to determine the state of health of her child and the proper course of her pregnancy up until you decide to complete the pregnancy and induce labor, which may vary from hospital to hospital according to the different protocols adopted.</p>
<p>Whether you are expecting your first child or wish to welcome another gift child a sibling, childbirth is always special for any mother in the world. Surrounding yourself with loads of information, going through numberless labor stories is not all that is needed during the period of pregnancy. The would be mothers also need to be aware of the <b>types of childbirth and labour</b>, which can make the journey of a newborn...... simple and the labour pain a pleasure for the mother. Taking the childbirth education classes in order to enhance your knowledge regarding the types of childbirth and labour is also a good idea. </p>



<head>
    <style>
        #dl1,#dl2,#dl3,#dl4{padding: .4em 1em .4em 20px;text-decoration: none;position: relative; color: #F6358A; }
    </style>
</head>
<script>
    $(function(){
       
        $('#dl1').click(function(){$('#dialog1').dialog('open'); return false;});
        $('#dl2').click(function(){$('#dialog2').dialog('open'); return false;});
        $('#dl3').click(function(){$('#dialog3').dialog('open'); return false;});
        $('#dl4').click(function(){$('#dialog4').dialog('open'); return false;});
       
        $('#dialog1,#dialog2,#dialog3,#dialog4').dialog({          
            width : 800,
            height : 600,
            modal : true,
            autoOpen : false,
            buttons: {                      
                      
            }
        });
      

    });
</script>
<a href="#" id="dl1" class="ui-state-default ui-corner-all">Natural Childbirth</a>
<a href="#" id="dl2" class="ui-state-default ui-corner-all">Induced Labour</a>
<a href="#" id="dl3" class="ui-state-default ui-corner-all">Cesarean Birth</a>
<a href="#" id="dl4" class="ui-state-default ui-corner-all">Water Birth</a>





<div id="dialog1" title="Natural Childbirth"  >
    <p>Most of the women are truly frightened before a childbirth because of lack of proper knowledge. It’s true that most women desire a <b>natural childbirth</b> unless and otherwise advised by doctors to go for Cesarean option. So if you are already petrified with the never lasting childbirth stories and also being told to go for certain drugs to ease your delivery process, do not give in to such advices. Natural childbirth is not that dreadful as might sound in the first place.</p>
    <p>Natural childbirth is a completely different experience and much fulfilling one than being put through drugs and surgery. Also the mother has complete control over herself and the health of the baby in a natural birth.</p>
    <p>One other reasons responsible for desiring natural childbirth is that the arrival of the baby is not assisted by any drugs and therefore the baby tends to be in a much more active and alert much better for the baby. The baby arrives in an un-drugged and therefore much more active and responsive.</p>
    <p>Natural childbirth is also very significant for establishing the bond between the baby and the mother instantly. It’s amazing how the baby tends to find the breast to be able to feed itself.</p>
</div>


<div id="dialog2" title="Induced Labour"  >
    <p>Induction of labour is carried out when it is felt that your baby is better off out of you than inside. This means that something is making its residence in your womb risky - be it for you or the baby.</p>
    <p>The most common reason for inducing labour is due to going over dates. Other reasons include diseases of pregnancy, poor growth in the baby, or unexplained bleeding at term. The aim when inducing labour is to make it as much like a normal labour as possible. By doing this, the chances of a normal delivery are increased, and it needn't be more painful.</p>
    <p>The hormone your body makes during labour is called oxytocin. It is made in a small area of the brain and released into the blood stream via the pituitary gland. How your body actually starts labour is still not known, in spite of many years of research. We know many of the hormonal changes that happen, but the actual trigger remains elusive.</p>
    <p>Oxytocin has been produced in the laboratory and the synthetic drug is used to start the uterus contracting. Unfortunately, it is not well absorbed in the stomach and needs to be given by a drip. This route of administration also means that the concentration of oxytocin can be increased or decreased should your contractions be too intense or not strong enough.</p>
</div>

<div id="dialog3" title="Cesarean Birth" >
    <p>A cesarean section, or c-section, is the delivery of a baby through a surgical incision in the mother's abdomen and uterus. In certain circumstances, a c-section is scheduled in advance. In others, it's done in response to an unforeseen complication.</p>
    <p><b>Why would I have a planned c-section?</b><br/>
        Sometimes it's clear that a woman will need a cesarean even before she goes into labor. For example, you may require a planned c-section if:
    </p>
    <ul>
        <li>You've had a previous cesarean with a "classical" vertical uterine incision (this is relatively rare) or more than one previous c-section. Both of these significantly increase the risk that your uterus will rupture during a vaginal delivery.  If you've had only one previous c-section with a horizontal uterine incision, you may be a good candidate for a vaginal birth after cesarean, or VBAC. (Note that the type of scar on your belly may not match the one on your uterus.)</li>
        <li>You've had some other kind of invasive uterine surgery, such as a myomectomy (the surgical removal of fibroids).</li>
        <li>You're carrying more than one baby. (Some twins can be delivered vaginally, but most of the time higher-order multiples require a c-section.)</li>
        <li>Your baby is expected to be very large (a condition known as macrosomia). This is particularly true if you're diabetic or you had a previous baby of the same size or smaller who suffered serious trauma during a vaginal birth.</li>
        <li>Your baby is in a breech (bottom first) or transverse (sideways) position. (In some cases, such as a twin pregnancy in which the first baby is head down but the second baby is breech, the breech baby may be delivered vaginally.)</li>
        <li>You have placenta previa (when the placenta is so low in the uterus that it covers the cervix).</li>
        <li>You have an obstruction, such as a large fibroid, that would make a vaginal delivery difficult or impossible.</li>
        <li>The baby has a known malformation or abnormality that would make a vaginal birth risky, such as some cases of open neural tube defects.</li>       
    </ul>
    <p>You're HIV-positive, and blood tests done near the end of pregnancy show that you have a high viral load.</p>
    <p>More likely, you'll be given an epidural or spinal block, which will numb the lower half of your body but leave you awake and alert for the birth of your baby.  If you've already had an epidural for pain relief during labor, it will often be used for your c-section as well. Before the surgery, you'll get extra medication to ensure that you're completely numb. (You may still feel some pressure or a tugging sensation at some point during the surgery.)  A catheter is then inserted into your urethra to drain urine during the procedure, and an IV is started (for fluids and medications) if you don't have one already. The top section of your pubic hair may be shaved, and you're moved into an operating room.</p>
    <p>You may be given an antacid medication to drink before the surgery as a precautionary measure. If an emergency arises, you may need general anesthesia, which puts you at risk for vomiting while you're unconscious and inhaling your stomach contents into your lungs. The antacid neutralizes your stomach acid so it won't damage your lung tissue.</p>
    <p>You'll probably be given antibiotics through your IV to help prevent infection after the operation. (Some practitioners give antibiotics after the surgery, but the newest recommendations require giving them before the surgery.)</p>
    <p>Anesthesia will be administered, and a screen will be raised above your waist so you won't have to see the incision being made. (If you'd like to witness the moment of birth, ask a nurse to lower the screen slightly so you can see the baby but not much else.) Your partner, freshly attired in operating room garb, may take a seat by your head.</p>
    <p>Once the anesthesia has taken effect, your belly will be swabbed with an antiseptic, and the doctor will most likely make a small, horizontal incision in the skin above your pubic bone (sometimes called a "bikini cut").  The doctor will cut through the underlying tissue, slowly working her way down to your uterus. When she reaches your abdominal muscles, she'll separate them (usually manually rather than cutting through them) and spread them to expose what's underneath.</p>
    <p>Then the doctor will reach in and pull out your baby. Once the cord is cut, you'll have a chance to see the baby briefly before he's handed off to a pediatrician or nurse. While the staff is examining your newborn, the doctor will deliver your placenta and then begin the process of closing you up.</p>
</div>


<div id="dialog4" title="Water Birth" >
    <p>Water birth is the process of giving birth in a tub of warm water. Some women choose to labor in the water and get out for delivery. Other women decide to stay in the water for the delivery as well. The theory behind water birth is that since the baby has already been in the amniotic fluid sac for 9 months, birthing into a similar environment is gentler for the baby and less stressful for the mother.</p>
    <p>Midwives, birthing centers and a growing number of obstetricians believe that reducing the stress of labor and delivery will reduce fetal complications. Water birth should always occur under the supervision of a qualified health care provider.</p>
    <p><b>Benefits for Mother:</b></p>
    <ul>
        <li>Warm water is soothing, comforting, relaxing.</li>
        <li>In the later stages of labor, the water has been shown to increase the woman’s energy.</li>
        <li>The effect of buoyancy lessens a mother's body weight, allowing free movement and new positioning.</li>
        <li>Buoyancy promotes more efficient uterine contractions and improved blood circulation resulting in better oxygenation of the uterine muscles, less pain for the mother, and more oxygen for the baby.</li>
        <li>Immersion in water often helps lower high blood pressure caused by anxiety.</li>
        <li>The water seems to reduce stress-related hormones, allowing the mother’s body to produce endorphins which serve as pain-inhibitors.</li>
        <li>Water causes the perineum to become more elastic and relaxed, reducing the incidence and severity of tearing and the need for an episiotomy and stitches.</li>
        <li>As the laboring women relaxes physically, she is able to relax mentally with greater ability to focus on the birth process.</li>
        <li>Since the water provides a greater sense of privacy, it can reduce inhibitions, anxiety, and fears.</li>
    </ul>
    <p><b>Benefits for Baby:</b></p>
    <ul>
        <li>Benefits for Baby:</li>
        <li>Eases the stress of the birth thus increasing reassurance and sense of security.</li>
    </ul>
</div>

<?php
include '../../include/config.php';
//$mid = mysql_fetch_array(mysql_query("select mother_id from baby_child_profile_detail where bid='" . $_COOKIE['bid'] . "'"));

$prof = mysql_query("select * from baby_child_profile_detail where bid='" . $_COOKIE['bid'] . "' ");
?>
<!-- -->

<fieldset>
    <legend>My Delivery Data</legend>
    <?php
    if ($_GET['p'] != 'edit') {

        while ($row = mysql_fetch_array($prof)) {
            ?>
            <a href="Birth?menu=sort_of_birth&p=edit">UPDATE</a>
            <table style="margin-left: 150px;" >
                <tr>
                    <td>Name :</td>
                    <td><?= $row['name'] ?></td>
                </tr>
                <tr>
                    <td>Sex :</td>
                    <td><?= $row['sex'] ?></td>
                </tr>
                <tr>
                    <td>Photo :</td>
                    <td><img src="<?='http://'.$_SERVER['HTTP_HOST'].'/salusbaby/storage/profile_photo/'.$row['photo']?>" style="height: 100px; width: 100px;" /></td>
                </tr>
                <tr>
                    <td>Date of Birth :</td>
                    <td><?=$row['date_of_birth'] ?></td>
                </tr>
                <tr>
                    <td>Birth Time :</td>
                    <td><?= $row['birth_time'] ?></td>
                </tr>
                <tr>
                    <td>Blood Group :</td>
                    <td><?= $row['group'] ?></td>
                </tr>
                <tr>
                    <td>Weight :</td>
                    <td><?= $row['weight'] ?></td>
                </tr>
                <tr>
                    <td>Height :</td>
                    <td><?= $row['height'] ?></td>
                </tr>

                <tr>
                    <td>Birth Type :</td>
                    <td>
                        <?= $row['birth_type'] ?>
                    </td>
                </tr>
                <tr>
                    <td>Status at Birth :</td>
                    <td><?= $row['birth_status'] ?></td>
                </tr>
            </table>


            <?php
        }
    } elseif ($_GET['p'] == 'edit') {
        while ($row1 = mysql_fetch_array($prof)) {
            ?>
            <a href="Birth?menu=sort_of_birth">CANCLE</a>
            <form enctype="multipart/form-data" action="../birth/updt.php" method="post" >             
                <table style="margin-left: 150px; " >
                    <tr>
                        <td style="width: 100px;" >Name :</td>
                        <td><input type="text" name="name" value="<?= $row1['name'] ?>"/></td>
                    </tr>
                    <tr>
                        <td>Sex :</td>
                        <td><input type="text" name="sex" value="<?= $row1['sex'] ?>"/></td>
                    </tr>
                    <tr>
                        <td>Photo :</td>
                        <td><img src="<?='http://'.$_SERVER['HTTP_HOST'].'/salusbaby/storage/profile_photo/'.$row1['photo']?>" style="height: 100px; width: 100px;" />
                            <input type="file" name="uploadedfile" value="<?=$row1['photo']?>" />
                            <h6>rename your photo name with your id </h6>
                        </td>
                    </tr>
                    <tr>
                        <td>Date of Birth :</td>
                        <td><input type="text" name="date_of_birth" value="<?= $row1['date_of_birth'] ?>"/></td>
                    </tr>
                    <tr>
                        <td>Birth Time :</td>
                        <td><input type="text" name="birth_time" value="<?= $row1['birth_time'] ?>"/></td>
                    </tr>
                    <tr>
                        <td>Blood Group :</td>
                        <td><input type="text" name="group" value="<?= $row1['group'] ?>"/></td>
                    </tr>
                    <tr>
                        <td>Weight :</td>
                        <td><input type="text" name="weight" value="<?= $row1['weight'] ?>"/></td>
                    </tr>
                    <tr>
                        <td>Height :</td>
                        <td><input type="text" name="height" value="<?= $row1['height'] ?>"/></td>
                    </tr>

                    <tr>
                        <td>Birth Type :</td>
                        <td>
                            <?= $row1['birth_type'] ?><br/>
                            <select name="birth_type">
                                <option value="Natural Childbirth" >Natural Childbirth</option>
                                <option value="Induced Labour">Induced Labour</option>
                                <option value="Cesarean Birth">Cesarean Birth</option>
                                <option value="Water Birth">Water Birth</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>Status at Birth :</td>
                        <td><input type="text" name="birth_status" value="<?= $row1['birth_status'] ?>"/></td>
                    </tr>
                    <tr>
                        <td>
                              <input type="hidden" name="MAX_FILE_SIZE" value="100000000000" />
                            <input type="submit" value="Update"/> </td>
                        <td></td>
                    </tr>
                </table>
            </form>
            <?php
        }
    }
    ?>

</fieldset>